import service from "@/utils/request.js";

// list接口
export function categoryListApi(data) {
    return service({
        url: '/category/list',
        method: 'GET',
        params: data
    })
}
// 分类添加中获取分类的数据
// categoryAddListApi
export function categoryAddListApi(data) {
    return service({
        url: '/category/addlist',
        method: 'GET',
        params: data
    })
}

// 添加接口
export function categoryAddApi(data) {
    return service({
        url: '/category/add',
        method: 'POST',
        data
    })
}
// 删除接口
export function categoryDeleApi(data) {
    return service({
        url: '/category/dele',
        method: 'GET',
        params: data
    })
}


// 修改接口
export function categoryEditApi(data) {
    return service({
        url: '/category/Edit',
        method: 'POST',
        data
    })
}